import BaseLayout from "./layout/BaseLayout";
import {Routers} from "f22";

export const routerConfig: Routers = [
  {
    path: "/Login",
    asyncComponent: () => import("./components/pages/user-help/Login")
  },
  {
    path: "/",
    component: BaseLayout,
    redirect: "/Main",
    children: [
      {
        name: "首页",
        path: "/Main",
        asyncComponent: () => import("./components/pages/main/Main")
      },
      {
        name: "学科管理",
        path: "/SubjectManage",
        asyncComponent: () => import("./components/pages/subject/SubjectManage")
      },
      {
        name: "用户管理",
        path: "/User",
        asyncComponent: () => import("./components/pages/user/UserList")
      },
      {
        name: "试卷",
        path: "/Paper",
        asyncComponent: () => import("./components/pages/paper/PaperList")
      },
      {
        name: "添加试卷",
        path: "/PaperAdd",
        asyncComponent: () => import("./components/pages/paper/PaperAdd")
      },
      {
        name: "编辑试卷",
        path: "/PaperEdit/:paperId",
        asyncComponent: () => import("./components/pages/paper/PaperAdd")
      },
      {
        name: "查看试卷",
        path: "/PaperView/:paperId",
        asyncComponent: () => import("./components/pages/paper/PaperAdd")
      },
      {
        name: "试卷详情",
        path: "/Paper/:paperId",
        asyncComponent: () => import("./components/pages/paper/PaperDetail")
      }
    ]
  },
]
